home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / gprof / makefile < prev    next >
Encoding:
Makefile  |  1994-12-17  |  3.3 KB  |  133 lines

  1. # Makefile generated by "configure.bat"
  2. #    @(#)Makefile    5.17 (Berkeley) 5/11/90
  3.  
  4. srcdir = .
  5.  
  6. prefix     = /usr/local
  7.  
  8. .SUFFIXES : .m
  9.  
  10. program_prefix     =
  11. exec_prefix     = $(prefix)
  12. program_transform_name =
  13. bindir     = $(exec_prefix)/bin
  14. libdir     = $(exec_prefix)/lib
  15. tooldir = $(libdir)
  16. mandir     = $(prefix)/man
  17. man1dir = $(mandir)/man1
  18.  
  19. infodir    = $(prefix)/info
  20. datadir = $(prefix)/lib
  21.  
  22. INSTALL = `cd $(srcdir); pwd`/../install.sh -c
  23. INSTALL_PROGRAM = $(INSTALL)
  24. INSTALL_DATA = $(INSTALL)
  25. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  26. INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
  27. MAKEINFO    = makeinfo
  28. TEX        = tex
  29. TEXINDEX    = texindex
  30.  
  31. # this is the directory we look in to find Texinfo
  32. texidir        = $(srcdir)/../texinfo
  33.  
  34. #### host and target dependent Makefile fragments come in here.
  35. MY_MACHINE=i386
  36. CC=gcc
  37. ###
  38.  
  39. PROG=    gprof
  40. SRCS=    gprof.c arcs.c dfn.c lookup.c $(MY_MACHINE).c hertz.c \
  41.     printgprof.c printlist.c
  42. LIBS = ../bfd/libbfd.a ../libiberty/libiberty.a
  43.  
  44. OBJS=    gprof.o arcs.o dfn.o lookup.o $(MY_MACHINE).o hertz.o \
  45.     printgprof.o printlist.o \
  46.     flat_bl.o bsd_callg_bl.o fsf_callg_bl.o
  47.  
  48. # Files that can be generated, but should be included in distribution.
  49. DISTSTUFF = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
  50.  
  51. CFLAGS=-g
  52. LDFLAGS=
  53. .c.o:
  54.     $(CC) -c $(CFLAGS) -I. -I$(srcdir) -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -DMACHINE_H=\"$(MY_MACHINE).h\" $(TCFLAGS) $(HCFLAGS) $<
  55.  
  56. all:    diststuff $(PROG)
  57.  
  58. .PHONY: check installcheck info install-info
  59. .SUFFIXES: .m
  60.  
  61. .m.c:
  62.     awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
  63.         FUNCTION=`(echo $*|sed -e 's/_bl//')`_blurb \
  64.         FILE=$*.m $(srcdir)/$*.m
  65.  
  66. diststuff: $(DISTSTUFF)
  67.  
  68. gprof.info: gprof.texi
  69.     $(MAKEINFO) -o gprof.info $(srcdir)/gprof.texi
  70.  
  71. gprof.dvi: gprof.texi
  72.     TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
  73.     $(TEXINDEX) gprof.??
  74.     TEXINPUTS=${TEXIDIR}:$(srcdir):$$TEXINPUTS $(TEX) $(srcdir)/gprof.texi
  75.  
  76. info: gprof.info
  77.  
  78. dvi: gprof.dvi
  79.  
  80. check:
  81. installcheck:
  82.  
  83. install-info: gprof.info
  84.     if [ -r gprof.info ]; then \
  85.       dir=. ; \
  86.     else \
  87.       dir=$(srcdir) ; \
  88.     fi ; \
  89.     for i in `cd $$dir; echo gprof.info*` ; do \
  90.         $(INSTALL_DATA) $$dir/$$i $(infodir)/$$i ; \
  91.     done
  92.  
  93. install: 
  94.     $(INSTALL_XFORM) gprof $(bindir)/gprof
  95.     $(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
  96.     -n=`t='$(program_transform_name)'; echo gprof | sed -e "s/brokensed/brokensed/" $$t`; \
  97.       rm -f $(tooldir)/bin/gprof; \
  98.       ln $(bindir)/$$n $(tooldir)/bin/gprof \
  99.        || $(INSTALL_PROGRAM) gprof $(tooldir)/bin/gprof; 
  100.  
  101.  
  102. gprof:    $(OBJS) $(LIBS)
  103.     $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)
  104.  
  105. mostlyclean:
  106.     -rm -f *.o core gprof nohup.out gprof.info* \
  107.     gprof.cps  gprof.fns  gprof.log  gprof.ps   gprof.tps\
  108.     gprof.aux  gprof.dvi  gprof.ky   gprof.pg   gprof.toc  gprof.vr\
  109.     gprof.cp   gprof.fn   gprof.kys  gprof.pgs  gprof.tp   gprof.vrs
  110. clean: mostlyclean
  111.     -rm -f gprof
  112. distclean: clean
  113.     -rm -f config.status Makefile
  114. realclean: distclean
  115.     -rm -f $(DISTSTUFF)
  116.  
  117. Makefile : Makefile.in
  118.     sh config.status
  119.  
  120.  
  121. # These get around a bug in Sun Make in SunOS 4.1.1 and Solaris 2
  122. gprof.o: gprof.c
  123. arcs.o: arcs.c
  124. dfn.o: dfn.c
  125. lookup.o: lookup.c
  126. $(MY_MACHINE).o: $(MY_MACHINE).c
  127. hertz.o: hertz.c
  128. printgprof.o: printgprof.c
  129. printlist.o: printlist.c
  130. flat_bl.o: flat_bl.c
  131. bsd_callg_bl.o: bsd_callg_bl.c
  132. fsf_callg_bl.o: fsf_callg_bl.c
  133.